import request from '@/utils/request'
export function getTreeJson(data: any) {
  return request({
    url: '/Base_DataDictionary/TreeJson',
    method: 'post',
    data,
  })
}
export function getTreeGridListJson(data: any) {
  return request({
    url: '/Base_DataDictionary/TreeGridListJson',
    method: 'post',
    data,
  })
}
// export function getItemsJson(data: any) {
//   return request({
//     url: '/Base_DataDictionary/BinDingItemsJson',
//     method: 'post',
//     data,
//   })
// }
export function getDetailJson(data: any) {
  return request({
    url: '/Base_DataDictionary/DataDictionaryDetailJson',
    method: 'post',
    data,
  })
}
export function getList(data: any) {
  return request({
    url: '/Base_DataDictionary/TreeGridListJson ',
    method: 'post',
    data,
  })
}

export function getDataDictionary(data: any) {
  return request({
    url: '/Base_DataDictionary/GetDataDictionary',
    method: 'post',
    data,
  })
}
export function getDataDictionaryDetail(data: any) {
  return request({
    url: '/Base_DataDictionary/GetDataDictionaryDetail',
    method: 'post',
    data,
  })
}
export function doEdit(data: any) {
  return request({
    url: '/Base_DataDictionary/Save',
    method: 'post',
    data,
  })
}
export function saveDetail(data: any) {
  return request({
    url: '/Base_DataDictionary/SaveDetail',
    method: 'post',
    data,
  })
}

export function doDelete(data: any) {
  return request({
    url: '/Base_DataDictionary/DeleteDictionary',
    method: 'post',
    data,
  })
}
export function deleteDictionaryDetail(data: any) {
  return request({
    url: '/Base_DataDictionary/DeleteDictionaryDetail',
    method: 'post',
    data,
  })
}
